package org.n.shop.service;

import org.n.shop.domain.dto.LoginDto;
import org.n.shop.domain.entity.User;
import org.n.shop.result.RestResult;
import org.springframework.web.multipart.MultipartFile;

public interface UserService {
    /**
     * 登录接口
     * @param user
     * @return
     */
    RestResult login(User user);

    RestResult userinfo(String authorization);

    RestResult update(String authorization, User user);

    RestResult uploadAvatar(String authorization, MultipartFile multipartFile);
}
